package com.action;

import com.dao.ITabEmbeddedpipestatisticsDao;
import com.dao.ITabHomeimprovementsalesstatisticsDao;
import com.opensymphony.xwork2.ModelDriven;
import com.po.TabEmbeddedpipestatistics;
import com.po.TabHomeimprovementsalesstatistics;

public class TabHomeimprovementsalesstatisticsAction extends BaseAction implements ModelDriven<TabHomeimprovementsalesstatistics>
{
	TabHomeimprovementsalesstatistics form = new TabHomeimprovementsalesstatistics();
	public TabHomeimprovementsalesstatistics getModel(){
		return form;
	}

	private ITabHomeimprovementsalesstatisticsDao tabHomeimprovementsalesstatisticsDao;
	public void setTabHomeimprovementsalesstatisticsDao(ITabHomeimprovementsalesstatisticsDao tabHomeimprovementsalesstatisticsDao){
		this.tabHomeimprovementsalesstatisticsDao = tabHomeimprovementsalesstatisticsDao;
	}

	public String findByList(){
		form.setPager_count(tabHomeimprovementsalesstatisticsDao.findByCount(form));
		form.setTabhisslist(tabHomeimprovementsalesstatisticsDao.findByList(form));
		return SUCCESS;
	}

	public String deleteObject(){
		tabHomeimprovementsalesstatisticsDao.deleteObejct(form);
		findByList();
		return SUCCESS;
	}

	public String updateObject(){
		tabHomeimprovementsalesstatisticsDao.updateObject(form);
		return "update";
	}

	
}
